#ifndef MACRO_H
#define MACRO_H

#define blank_off() {\
asm("            ld     a,0x22");  \
asm("            out    (0x99),a");  \
asm("            ld     a,0x81");  \
asm("            out    (0x99),a");  \
}

#define blank_on() {\
asm("            ld     a,0x62");  \
asm("            out    (0x99),a");  \
asm("            ld     a,0x81");  \
asm("            out    (0x99),a");  \
}

//#define blank_off()
//#define blank_on() 

//void basenear ldirvm(uchar * vramstart,uchar * ramstart);
//void basenear ldirvm54(uchar * vramstart,uchar * ramstart);
//void basenear filvrm(uchar data, uchar * len,uchar * vramstart);


#define random()            {\
    asm(" ld a,r ");        \
    asm(" ld (_rnd),a ");   }

#define color(x)\
{   \
asm("di");          \
v99 = (x);          \
v99 = 128U+7U;        \
asm("ei"); \
}

//#define color(x)

#endif



//;LDIRVM
//;
//;
//;Address  : #005C
//;Function : Block transfer to VRAM from memory
//;Input    : BC - blocklength
//;           DE - Start address of VRAM
//;           HL - Start address of memory
//;Registers: All
//
//;FILVRM
//;
//;
//;Address  : #0056
//;Function : fill VRAM with value
//;Input    : A  - data byte
//;           BC - length of the area to be written
//;           HL - start address
//;Registers: AF, BC
